<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var a = 10;
        // var obj = {};
        // obj.a = 10
        // console.log(a)
        // console.log(obj)
        // function fn(a){
        //     console.log(this);
        // }
        // fn(1)

        // var str = "awdawdawa"
        // var res = str.charAt(2)
        // console.log(res)
        // var fn = function(){
        //     console.log(this);
        // }


        // var obj = {
        //     name:"张三",
        //     fn:fn
        // }

        // obj.fn();

        var arr = ["张三","李四","王五"];
        for(var key in arr){
            // console.log(key);
            console.log(arr[key]);
        }
    </script>
</body>
</html>